// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov  Date: 16.03.2004 16:49:11
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name:   FastSQLContainer.java

package com.tizona.system;

import com.tizona.dao.jdbc.SQLRequest;
import com.tizona.dao.jdbc.FastStatement;

import java.sql.SQLException;
import java.util.Hashtable;

// Referenced classes of package com.tizona.system:
//            FastStatement, SQLRequest

public class FastSQLContainer
{

    public FastSQLContainer(SQLRequest sqlrequest)
    {
        container = new Hashtable();
        sqlreq = sqlrequest;
    }

    public FastStatement get(String s)
        throws SQLException
    {
        FastStatement faststatement = (FastStatement)container.get(s);
        if(faststatement == null)
        {
            faststatement = sqlreq.prepare(s);
            container.put(s, faststatement);
        }
        return faststatement;
    }

    Hashtable container;
    SQLRequest sqlreq;
}
